/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package megachess.svn;

/**
 *
 * @author johannes
 */
public class Move implements Cloneable{
    
    Square toSquare;
    Square fromSquare;
    int targetHeuristic;
    
    
    
    public Object clone()
    {
        try
        {
            return super.clone();
        }catch (CloneNotSupportedException e)
        {
            return null;
        }
    }//endmehtod

    public int getTargetHeuristic() {
        return targetHeuristic;
    }

    public void setTargetHeuristic(int targetHeuristic) {
        this.targetHeuristic = targetHeuristic;
    }
    
    
   

    public Move(Square fromSquare, Square toSquare){
        
        this.fromSquare = fromSquare;
        this.toSquare = toSquare;

    }

     public Move(Square fromSquare, Square toSquare, int targetHeuristic){
        
        this.fromSquare = fromSquare;
        this.toSquare = toSquare;
        this.targetHeuristic=targetHeuristic;
    }//end method
    
    
    public String getMoveString()
    {
        return (fromSquare.getSquareString() + "-" + toSquare.getSquareString());
        
    }

    public Square getFromSquare() {
        return fromSquare;
    }

    public Square getToSquare() {
        return toSquare;
    }
    
    
    
}//endclass
